<?php

$a = copy('https://xxx.com/64bb9a43253ac.png', 'a.png');
var_dump($a);